module.exports = app => {
  const controller = require("../controllers/health_records.controller");

  const router = require("express").Router();


  router.post("/app/list", controller.list);
  router.get("/app/getDetail", controller.getDetail);
  router.post("/app/create", controller.create);
  router.post("/app/getRecordListByType", controller.getRecordListByType);





  router.get("/admin/delete", controller.del);
  router.post("/admin/update", controller.update);
  router.get("/admin/getDetail", controller.getDetail);
  router.post("/admin/list", controller.list);

  app.use('/api/health_records', router);
};
